//
//  TestViewController.m
//  123
//
//  Created by Mac OS on 15-11-6.
//  Copyright (c) 2015年 xiongmingkai. All rights reserved.
//

#import "TestViewController.h"

@interface TestViewController ()
{
    NSArray * date;
    NSArray * detail;
}
@end

@implementation TestViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    date = @[@"jfgkdga",
             @"dddddd",
             @"德国各界后来可以平时让朋友谁",
             ];
    detail=@[@"123",
             @"456",
             @"789",
             ];
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    return date.count; //返回元素得数量 数组有多少行
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    UITableViewCell * cell = [[UITableViewCell alloc]initWithStyle:UITableViewCellStyleValue1 reuseIdentifier:nil];
    cell.textLabel.text = date[indexPath.row];
    
    
    return cell;
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
{
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
